<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>地图展示</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <style>

        #container {
            overflow: auto;
            width: 100%;
            height: 500px;
            margin: 0;
            font-family: "微软雅黑";
        }

    </style>
    <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=1AkhOGKcEuwGawEEPaNfPHZECM0CRLNr"></script>
</head>
<body>
<div id="container"></div>
</body>
</html>
<script>
    var map = new BMapGL.Map('container'); // 创建Map实例
    map.centerAndZoom(new BMapGL.Point(116.404, 39.915), 12); // 初始化地图,设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放
    var local = new BMap.LocalSearch(map, {
        renderOptions:{map: map}
    });
    local.search("景点");
</script>